package com.optimatch.ui.view.customComponents.pages;

import java.awt.BorderLayout;
import java.awt.Label;

import javax.swing.BoxLayout;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class ResultatPanel extends JTabbedPane {

	public static String RESOUDRE = "Résoudre";
	public static String AFFICHAGE_GENERAL = "General";
	public static String AFFICHAGE_PAR_JOURNEE = "Par journee";
	public static String AFFICHAGE_PAR_EQUIPE = "Par equipe";
	
	private JComboBox choiceBox;
	private JPanel affichageResultat;
	private JButton resoudreButton;
	private SearchInfoPanel searchInfoPanel;
	private ResulatParJourneePanel resultatParJournee;
	private ResultatParEquipePanel resultatParEquipe;
	private ResultGeneralPanel resultGeneral;
	
	public ResultatPanel() {
		super();
		init();
	}


	private void init() {
		JPanel resoudre = new JPanel(new BorderLayout());
		affichageResultat = new JPanel();
		resoudreButton = new JButton(new ImageIcon("pics/icons/solve.png")) ;
		resoudre.add(resoudreButton, BorderLayout.NORTH);
		this.addTab(RESOUDRE,resoudre);
		resultGeneral = new ResultGeneralPanel();
		this.addTab(AFFICHAGE_GENERAL,resultGeneral);
		resultatParJournee = new ResulatParJourneePanel();
		this.addTab(AFFICHAGE_PAR_JOURNEE, resultatParJournee);
		resultatParEquipe = new ResultatParEquipePanel();
		this.addTab(AFFICHAGE_PAR_EQUIPE, resultatParEquipe);
		searchInfoPanel = new SearchInfoPanel();
		this.add("Infos",searchInfoPanel);
	}
	public JButton getResoudreButton() {
		return resoudreButton;
	}


	public SearchInfoPanel getSearchInfoPanel() {
		return searchInfoPanel;
	}


	public void setSearchInfoPanel(SearchInfoPanel searchInfoPanel) {
		this.searchInfoPanel = searchInfoPanel;
	}


	public ResulatParJourneePanel getResultatParJournee() {
		return resultatParJournee;
	}


	public void setResultatParJournee(ResulatParJourneePanel resultatParJournee) {
		this.resultatParJournee = resultatParJournee;
	}


	public ResultatParEquipePanel getResultatParEquipe() {
		return resultatParEquipe;
	}


	public void setResultatParEquipe(ResultatParEquipePanel resultatParEquipe) {
		this.resultatParEquipe = resultatParEquipe;
	}


	public ResultGeneralPanel getResultGeneral() {
		return resultGeneral;
	}


	public void setResultGeneral(ResultGeneralPanel resultGeneral) {
		this.resultGeneral = resultGeneral;
	}

	
	
	
}
